projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e46267
)
Pacify gcc -Wsuggest-attribute=malloc
author
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 17 Oct 2021 17:51:56 +0000
(10:51 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 17 Oct 2021 17:52:26 +0000
(10:52 -0700)
Problem found with gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 x86-64.
* src/sysstdio.h (emacs_fopen): Mark with ATTRIBUTE_MALLOC.
src/sysstdio.h
patch
|
blob
|
history
diff --git
a/src/sysstdio.h
b/src/sysstdio.h
index d4df3d74567fdf0af723ef9bd041b43ab69c2414..d6ebfb455f5145189926870e702b72d95a8ffcf5 100644
(file)
--- a/
src/sysstdio.h
+++ b/
src/sysstdio.h
@@
-26,7
+26,7
@@
along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include <stdio.h>
#include "unlocked-io.h"
-extern FILE *emacs_fopen (char const *, char const *);
+extern FILE *emacs_fopen (char const *, char const *)
ATTRIBUTE_MALLOC
;
extern void errputc (int);
extern void errwrite (void const *, ptrdiff_t);
extern void close_output_streams (void);